<div style="height:20px;"></div>
  <%- model_class = PEntry -%>
        <% @p_entries.each do |p_entry| %>
    <div class="col-lg-12 col-md-12 col-xs-12">
          <%if p_entry.status > 60 %>
                <%  @stat="success" %>
          <%else%>
            <%if p_entry.status > 40%>
                <%  @stat="warning"%>
            <%else%>
                <%  @stat="danger"%>
            <%end%>
          <%end%>

      <div class="panel panel-default">
        <div class="panel-heading" style="height:50px">
          <div class="col-lg-8 col-md-8 col-xs-8" style="padding-top:5px;">
            <p style="font-size:17px;"><%= p_entry.project %></p>
          </div>
          <div class="col-lg-4 col-md-4 col-xs-4" style="padding-top:3px;">
            <% if p_entry.status==100 %>
              <div class="col-lg-10 col-md-10 col-xs-10"></div>
              <div class="col-lg-2 col-md-2 col-xs-2">
              <img src="/assets/done.png" class="img" style="margin-top:-10px;"/></div>
            <% else %>
            <div class="progress">
              <div class="progress-bar progress-bar-<%=@stat%> progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: <%= p_entry.status %>%;">
              <span> <%= p_entry.status %>% </span>
              </div>
            </div>
            <%end%>
          
             
            </div>

        </div>
        <div class="panel-body">
            <div class="col-lg-6 col-md-6 col-xs-6">
              <p style="font-size:16px;"><%= p_entry.story %> </p>
              <p style="font-size:15px;">
              <span class='label label-default'>
              <% if p_entry.storytype=='feature' %>
                <i class="glyphicon glyphicon-star-empty" ></i>
              <% elsif p_entry.storytype=='bug'%>
                <i class="glyphicon glyphicon-wrench" ></i>
              <% elsif p_entry.storytype=='chore'%>
                <i class="glyphicon glyphicon-cog" ></i>
              <% elsif p_entry.storytype=='release'%>
                <i class="glyphicon glyphicon-flag" ></i>  
              <%end%>
              <%= p_entry.storytype %>
            </span>
              </p>
              
            </div>
            <div class="col-lg-6 col-md-6 col-xs-6" style="padding-top:10px;padding-left:10px;">
              <font color="red" style="font-size:18px;"><%= p_entry.note %></font>
            </div>
        </div>
        <div class="panel-footer">



          <a href="#" data-toggle="modal" title="<%= p_entry.project%>-<%= p_entry.story%>" data-target="#myModal<%=p_entry.ptracker%>">
          <span class="pull-left" ><i class="glyphicon glyphicon-zoom-in"> </i>View Descrpition </span>
          </a>


          <!-- Modal -->
          <div class="modal fade" id="myModal<%=p_entry.ptracker%>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color:transparent;">
            <div class="modal-dialog">
              <div class="modal-content">
                <div class="modal-header" align='left'>
                 
                  <h4 class="modal-title" id="myModalLabel"><strong><%= p_entry.project%></strong> | <%= p_entry.story%></h4>
                </div>
                <div class="modal-body" align='left' style="font-size: 1.2vw">
                  <%= p_entry.storydescription %>
                </div>
                <div class="modal-footer">
                  <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                </div>
              </div>
            </div>
          </div>

          

           <a href="https://www.pivotaltracker.com/s/projects/<%=p_entry.projectid%>/stories/<%=p_entry.ptracker%>" target="_blank">
            <span class="pull-left" > &nbsp
            <i class="glyphicon glyphicon-eye-open" ></i>Open in Pivotal Tracker
            </span>
          </a>

                <%= link_to t('.edit', :default => t("helpers.links.edit")),edit_p_entry_path(p_entry), :class => 'pull-right glyphicon glyphicon-edit' , :style =>'hover{background:transparent;display:block;}' %>
                &nbsp
                
                <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
                      p_entry_path(p_entry),
                      :method => :delete,
                      :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
                      :class => 'pull-right glyphicon glyphicon-trash',
                      :style => 'padding-right:15px;'%>
            <div class="clearfix"></div>
        </div>
      </div>
      <!-- /.col-lg-4 -->

       </div>
    <%end%>


